package com.wyzz.hr.pojo;

import java.io.Serializable;

public class Empsalarydatadef implements Serializable {

	public Empsalarydatadef() {
		esddDataIsCalc = Integer.valueOf(0);
		esddDataRounding = Integer.valueOf(0);
		hashCode = 0x80000000;
	}

	public Empsalarydatadef(String esddId) {
		esddDataIsCalc = Integer.valueOf(0);
		esddDataRounding = Integer.valueOf(0);
		hashCode = 0x80000000;
		this.esddId = esddId;
	}

	public Empsalarydatadef(String esddName, String esddDesc,
			Integer esddDataType, Integer esddDataIsCalc,
			Integer esddDataRounding, Integer esddDataLength,
			Integer esddDataOutput) {
		this.esddDataIsCalc = Integer.valueOf(0);
		this.esddDataRounding = Integer.valueOf(0);
		hashCode = 0x80000000;
		this.esddName = esddName;
		this.esddDesc = esddDesc;
		this.esddDataType = esddDataType;
		this.esddDataIsCalc = esddDataIsCalc;
		this.esddDataRounding = esddDataRounding;
		this.esddDataLength = esddDataLength;
		this.esddDataOutput = esddDataOutput;
	}

	public String getEsddId() {
		return esddId;
	}

	public void setEsddId(String esddId) {
		this.esddId = esddId;
	}

	public String getEsddName() {
		return esddName;
	}

	public void setEsddName(String esddName) {
		this.esddName = esddName;
	}

	public String getEsddDesc() {
		return esddDesc;
	}

	public void setEsddDesc(String esddDesc) {
		this.esddDesc = esddDesc;
	}

	public Integer getEsddDataType() {
		return esddDataType;
	}

	public void setEsddDataType(Integer esddDataType) {
		this.esddDataType = esddDataType;
	}

	public Integer getEsddDataIsCalc() {
		return esddDataIsCalc;
	}

	public void setEsddDataIsCalc(Integer esddDataIsCalc) {
		this.esddDataIsCalc = esddDataIsCalc;
	}

	public Integer getEsddDataRounding() {
		return esddDataRounding;
	}

	public void setEsddDataRounding(Integer esddDataRounding) {
		this.esddDataRounding = esddDataRounding;
	}

	public Integer getEsddDataLength() {
		return esddDataLength;
	}

	public void setEsddDataLength(Integer esddDataLength) {
		this.esddDataLength = esddDataLength;
	}

	public Integer getEsddSortId() {
		return esddSortId;
	}

	public void setEsddSortId(Integer esddSortId) {
		this.esddSortId = esddSortId;
	}

	public Integer getEsddDataOutput() {
		return esddDataOutput;
	}

	public void setEsddDataOutput(Integer esddDataOutput) {
		this.esddDataOutput = esddDataOutput;
	}

	public boolean equals(Object obj) {
		if (null == obj)
			return false;
		if (obj instanceof Empsalarydatadef) {
			Empsalarydatadef empsalarydatadef = (Empsalarydatadef) obj;
			if (null == getEsddId() || null == empsalarydatadef.getEsddId())
				return false;
			else
				return getEsddId().equals(empsalarydatadef.getEsddId());
		}
		if (obj instanceof Empsalaryacctitems) {
			Empsalaryacctitems items = (Empsalaryacctitems) obj;
			if (items == null || items.getEsaiEsdd() == null
					|| items.getEsaiEsdd().getEsddName() == null)
				return false;
			if (items.getEsaiEsdd().getEsddName().trim().equals(getEsddName()))
				return true;
		}
		return false;
	}

	public int hashCode() {
		if (0x80000000 == hashCode) {
			if (null == getEsddId())
				return super.hashCode();
			String hashStr = (new StringBuilder()).append(getClass().getName())
					.append(":").append(getEsddId().hashCode()).toString();
			hashCode = hashStr.hashCode();
		}
		return hashCode;
	}

	public String toString() {
		return super.toString();
	}

	private String esddId;
	private String esddName;
	private String esddDesc;
	private Integer esddDataType;
	private Integer esddDataIsCalc;
	private Integer esddDataRounding;
	private Integer esddDataLength;
	private Integer esddSortId;
	private Integer esddDataOutput;
	private int hashCode;
}
